 # 应用ID
APP_ID = "2016101500694670"

# 是否是沙箱环境
DEBUG = True

# 签名算法 RSA or RSA2
SIGN = 'RSA2'


# 网关
if DEBUG:
    GATEWAY = 'https://openapi.alipaydev.com/gateway.do?'
else:
    GATEWAY = 'https://openapi.alipay.com/gateway.do?'


# 应用私钥
app_private_key_string = """-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEA5TCFXfsejQg5dapP0aVZsw558V7HLc21n32rLeG9ChJLjGaCtBmlo5COd44Pia3FVr2//+2uO5adzxoNvU/MgqSehQOgtAt8akxaT1eL4PF0e9TIC+vpb/fRtN0Q/DoT+f5CyaV2OHLL5q0ME4SYV6/dFmbdISEYx0+ncXDfJSYM0cg0AThQaXCfWJurH9YfMr/yKYln3ODF2g7y2dzr8i5mWVcS6nmLco6z7AIzkM7Xpq9m+CpAtp4XDhY+nv20v+RP4CisecUsljHk7CrjEWQo/09GI1b4wmWPRty5440Qkjp0XEJgsG7rDJoVO0F7XBXdlK/ycqnD9rEg8l39PwIDAQABAoIBAGu0J5iIwEyqhsYi6SuuNr8MmIWzcoq11xpCZkVDhiDLhDFQoy+btdltv2Wznt2micw/k5Dj0zMxjquapMZIT+U9EzmTANxbYXZatz39+EAXeBQRZIklrifuH+CM2sSNToH22NAGL85LNEMNI1WwxB7BCHbUlCpTcV+IsTmAP30mxrrhuIb+1Gp9iKZ8JJxX0q/nz15Z+AwGsxuIEWJS7vkxSM07PyWOTuV2jdtw2MKJlhcZCwy43pUGuJ82o5LmCJa+Ufp8EffI5Su3lkNUmjdZk4IPCSSYhUGQBKlHVFvPQwbVeAlxA94/d9EmSWXflzqgMm5hNR8bxNMIMChWy/ECgYEA99Fp2QIR3fs11f1LJypZFNe+DviSWMuf+6WFr/R8nuFbihmQO81BgOK15OoclDY9JeOOPeRSXRQESrgohsjVpuzI/oArWq/EgdkR/ZqK1qfVpAqP+dCzJEJE8/HmlO5GWGpxZpE1l6HcRjggK3aQ01u+Nq5p0qD1mecg7fWZV0UC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oSitIUSckFSTGJlZl580hnkeyqFwzLscc4zWiYYXD738NW7nMKHubkI83Qor9ZXuh65mwIDAQAB
-----END PUBLIC KEY-----"""


# 后台http根路径
BASE_URL = 'http://127.0.0.1:8000'
# BASE_URL = 'http://118.190.160.126:8000'

# 前台http根路径
LUFFY_URL = 'http://127.0.0.1:8080'
# LUFFY_URL = 'http://118.190.160.126:8080'

# 订单支付成功的后台异步回调接口
NOTIFY_URL = BASE_URL + '/order/success'

# 订单支付成功的前台同步回调接口
RETURN_URL = LUFFY_URL + '/pay/success'


